package com.farmpost.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 回复表
 * </p>
 *
 * @author king
 * @since 2022-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ReplyComment对象", description="回复表")
public class ReplyComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "评论id")
    private Integer commentId;

    @ApiModelProperty(value = "回复目标主题id")
    private Integer replyId;

    @ApiModelProperty(value = "回复类型")
    private String replyType;

    @ApiModelProperty(value = "回复内容")
    private String content;

    @ApiModelProperty(value = "回复用户id")
    private Integer fromUid;

    @ApiModelProperty(value = "目标用户id")
    private Integer toUid;

    @ApiModelProperty(value = "回复获得赞数")
    private Integer greatCount;

    @ApiModelProperty(value = "回复是否审核")
    private Boolean replyStatus;

    @ApiModelProperty(value = "回复时间")
    private LocalDateTime dateTime;

    @ApiModelProperty(value = "回复用户")
    @TableField(exist = false)
    private UserInfo userInfo;

    @ApiModelProperty(value = "回复数量")
    @TableField(exist = false)
    private Integer count;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private Boolean inputShow;
}
